let { projectRootPath } = require("../../util/index");
let { getNewRouter } = require(`${projectRootPath}/app/index.js`);
let app = getNewRouter();
// sts 相关
app.use("/sts", require(`${projectRootPath}/controller/pc/sts/index.js`));
// 登陆相关
app.use("/login", require(`${projectRootPath}/controller/pc/login/index.js`));
// 用户相关
app.use("/user", require(`${projectRootPath}/controller/pc/user/index.js`));
// 权限相关
app.use("/role", require(`${projectRootPath}/controller/pc/role/index.js`));
// 业主相关
app.use("/owner", require(`${projectRootPath}/controller/pc/owner/index.js`));
// 任务相关
app.use("/task", require(`${projectRootPath}/controller/pc/task/index.js`));
// 缴费相关
app.use("/pay", require(`${projectRootPath}/controller/pc/pay/index.js`));
// 配置相关
app.use("/config", require(`${projectRootPath}/controller/pc/config/index.js`));
// 巡区相关
app.use("/patrol", require(`${projectRootPath}/controller/pc/patrol/index.js`));
// 导出
module.exports = app;
